home *** CD-ROM | disk | FTP | other *** search
/ USA Bestseller / USA BESTSELLER Vol 1-95 (Hepp-Computer)(1995).iso / e204 / plotdemo < prev    next >
Text File  |  1994-08-16  |  725b  |  35 lines

  1. ; To run this demo, type   UCALC < PLOTDEMO   at the DOS prompt.
  2.  
  3. plot y=sin(x)
  4. plot r=t/pi, 0..5pi   ; Polar equation
  5. plot x=cos(t)-cos(2t), y=sin(t)-sin(2t), 0..2pi   ; Parametric equation
  6. plot 3*sin(t), t, -7.5..7.5  ; Another parametric equation
  7.  
  8. window(0,10,0,7.5)      ; (0,0) is now on the bottom left of the screen
  9. plot x^2
  10.  
  11. window(-10,10,-7.5,7.5) ; Back to the default window setting
  12.  
  13. plot                    ; Plot by itself prompts for multiple equations
  14. line(-6,-5,-1,4)
  15. y=sin(x)
  16. y=2sin(x)
  17. r=2cos(3t)
  18. x=2cos(t), y=2sin(t)
  19. rect(5,3,7,7)
  20. fill(6,4)
  21.  
  22. plot"graph1.dat"        ; Plots the data from another file
  23.  
  24. plot
  25. sin(x)
  26. rect(-9,-5,-4,-2)
  27. "graph2.dat"
  28.  
  29. mono
  30. plot
  31. 5/x
  32. fill(1,1)
  33.  
  34.  
  35.